// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addStudentGroup POST /api/student_group/add */
export async function addStudentGroupUsingPost(
  body: API.StudentGroupAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/student_group/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteStudentGroup POST /api/student_group/delete */
export async function deleteStudentGroupUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student_group/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getStudentGroupById GET /api/student_group/get */
export async function getStudentGroupByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getStudentGroupByIdUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseStudentGroup_>('/api/student_group/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** listStudentGroup POST /api/student_group/list */
export async function listStudentGroupUsingPost(
  body: API.StudentGroupQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListStudentGroup_>('/api/student_group/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listStudentGroupByPage POST /api/student_group/list/page */
export async function listStudentGroupByPageUsingPost(
  body: API.StudentGroupQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudentGroup_>('/api/student_group/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listStudentGroupByPageByTeacher POST /api/student_group/list/page/byTeacher */
export async function listStudentGroupByPageByTeacherUsingPost(
  body: API.StudentGroupQueryByTeacherDto,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageStudentGroup_>('/api/student_group/list/page/byTeacher', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateStudentGroup POST /api/student_group/update */
export async function updateStudentGroupUsingPost(
  body: API.StudentGroupUpdateRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/student_group/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
